Yes. Technically a “D” is a passing grade, so you can take other courses. However, a “D” may not satisfy your major requirements so you should check with your advisor about the best course of action.
FAQ to Display (OLD FIELD):
Undergraduate Program FAQ