Clindamycin and pregnancy

Is it safe to take clindamycin while pregnant ? My OB prescribed it because I have an infection and I'm just really Leary on it.