Invest 90% savings into S&P 500?

18 and living with parents who provide and support me in everything I do so I have no financial responsibilities. I work a 9-5 job and am focused on saving and investing until I have enough money to purchase first home. Would investing in the S&P be a better route for me than just letting my money sit in the bank and let inflation screw it over?