You are allowed to book an appointment without consulting a gynae. The vaccine has been studied to be safe for pregnant mothers. But if you’d like to get your gynae’s opinion, you can do that too before booking an appointment.
Better to consult with your gynae first.