Iron pills and prenatal safe or no?

So I had some regular routine bloodwork done and got prescribed iron pills is it safe to take a prenatal with it when the prenatal has iron in it as well?