It might be a military offence for a soldier to marry without permisssion - but that can in no way affect the validity of the marriage.
No doubt there'll be films drawing on this situation, the way there were about warbrides in the Second World War. (For example "I Was a Male Warbride" with Cary Grant.