pregnant can I have sex

If I'm pregnant and high risk due to frequent uti 
( 9 weeks pregnant )