Smoking when pregnant

I am nearly 5 week pregnant and stopped smoking cigarettes the day I found out but I was told them e-cigarettes are ok to use if you are still craving, I have been using one but still unsure if it is ok, what are people's views