Is it true that if you get a D plus in one undergraduate class you need to retake it in your masters?

There is no single answer to this question. If the grad school requires it, then do that. They may want to know that you are ready and able to tackle grad level schooling.