Acne medicine during the first trimester of pregnancy

Aya
I went to a dermatologist last week and I told him that I am  5 weeks pregnant so he gave me this prescription 
But i am still worried,, is it okay if i used these medicines