I had embryo transfer 12 days ago, positive test, had intercourse last night and I have slightly bleeding tonight is this ok?

Don't worry. Having sex does not cause a miscarriage, whether you had IVF or not. You need to see an ObGyn or your IVF doctor so they can follow the progress of your pregnancy. Either with ultrasound and/or by blood tests. Best of luck.