Sandy is shown to be able to fly as a flying squirrel in this film. However, in every Spongebob iteration before, she has been established as a land squirrel, both in animation and live-action.
Just like in the previous movies, SpongeBob and his friends had to ability to breathe air when they were on the surface.