Yes. Many naval bases were Spartan in Overseas sites. Conditions such as family care and child birth were handled at local hospitals. McCain was born outside the CZ in Panama.
No he wasn't. You're repeating a long-debunked false rumor fueled by a fake birth certificate floating around the internet. The Coco Solo naval base in the Canal Zone had a medical facility, McCain was born there, and this has been proven. Sources available upon request.