were you vaccinated as a child? if it's a public pool, i wouldn't risk it. i'm not sure if the virus can live on water, but carriers might have used other facilities
here's info on getting measles while pregnant: https://ph.theasianparent.com/tigdas-habang-buntis