Sun screen for 5 month old!

Is it safe? I know the recommended time is 6 months but did you all start earlier? I want to take my bub to the beach and I bought a sun hat but I want to be extra careful