Only by TM. Snorlax never learns Hyper Beam naturally through levelling up.
That is unusual for a heavyweight like Snorlax, but it is consistent across the games — Hyper Beam sits in the TM list rather than the level-up learnset. Teach it the TM and the move is available immediately, so there is no level threshold to wait for.