Yes, prescription sunglasses can be made with progressive addition lenses such that you can protect your eyes from the sun and see your reading material.  With “no line” bifocals, no one at the beach will know you have bifocals.