Laxatives while pregnant

Is it ok to take a laxative while pregnant ?? I want to take one but I want to make sure I can first to be safe !