Hepatitis B Vaccine Series

Is it safe during second trimester of pregnancy to get?