No.
You get a B.S. with enough STEM courses, even if you're an English Major, that, theoretically, you are prepared to go into any warfare community. The Navy will give you everything you need to know to be a pilot.
To get a pilot slot, you should do your best to be at a respectable class rank, do well on various flying aptitude tests, and avoid fatal conduct, performance or physical fitness trouble. You should also seek out summer aviation-related training opportunities.
From our USNA midshipman sponsor family, we have had History, English, Poli Sci, Oceanography, Physics majors, etc., go Navy or Marine air.
Major in something you enjoy.
I have related this one here before... Two sponsor mids, roommates. One EE major, top 20 in class, wanted Navy aviation, got it. Roomie, middle of the road student, Econ major, played a lot of video games while EE major labored in labs, also got Navy air, but NFO due to eyes. Fast forward to flight training. Navy needed pilots, so Gamer got a waiver and switched to pilot. Gamer got serious about studying. Engineer did well, but struggled a bit on hops, because he focused on the engineering too much. Gamer was a a more intuitive pilot, focused on flying, aced every hop. One jet slot available to their class/section. Gamer got it. Engineer got helos but sorely wanted jets. Engineer got a rare break, though, when Marines needed more jet pilots and he landed a coveted spot, did inter-service transfer.
There are plenty of briefs about majors and time to decide.
Edit: Now, if you're thinking test pilot, astronaut or post-Navy career, that might be a factor to consider.