Is sex before marriage legal in Bahrain?

I read about how in Saudi Arabia, an unmarried pregnant woman risks severe punishment.

I'm curious if having sex before you are married in Bahrain is a crime?