yes it is fine to have sex during the spotting episodes unless it makes the pain/cramping worse. if the spotting only occurs midcycle then one would wonder if it was peri-ovulatory spotting due to the abrupt estrogen spike and decline at that time. if the spotting becomes more prevalent or the pain more marked you should return to your gyn for follow up.
is it safe to have sex if i am spotting between my periods?