Not necessarily:-
You can apply for a copy of someone else’s service records if any of the following apply:
you’re their immediate next of kin, for example their spouse or parent
you’ve got consent from their immediate next of kin
you have a general research interest - you’ll only have access to limited information, unless they died more than 25 years ago
You need to know the person’s full name, date of birth and service number.