Swimming in the ocean while pregnant.

im 28 weeks, and we are at the beach. is it ok to get in the ocean? * we are near calm waters, the waves are calm and not big at all*