In a word...
No. Going to USNA obligates you to do your 4-year (or 5-year, if you go nuclear or some aviation) commitment in an Unrestricted Line Officer field, i.e. Surface, Subs, Aviator, NFO, Seal. There are programs available for you after the fact, a friend of mine off my first ship left...