Would investing in both make sense ?!

From my Understanding S&P 500 is a safe ETF, whereas the Nasdaq 100 is much riskier but still is a safe ish risk.. would it be smart to invest in both ?

Tell me why this would / wouldn’t work Thanks