Sex is pretty much safe throughout the entire pregnancy unless the doctor doesn't recommend it.
Unless dr tells u otherwise ur good to go :) im 36+6days and im still good to go.
Its safe to have sex up until you go into labor unless Dr. tells you other wise.