Thanks for the replies guys. I'm not familiar with subarus so I thought maybe this was a common thing that I was unaware of. Yeah, there's no way I'm buying a new car with a check engine light on... lol.
I just bought a 19 WRX and there was also a check engine light on. It's a fuse that is in new cars and has to be taken out. I watched my salesman take out the fuse prior to me taking it on a test drive and the light cleared. He explained that it comes from the factory like that. I have had no issues or lights. I wouldn't worry.