Earning a D will look bad whether it's for a pre-req or not. Don't focus your energy into contemplating the consequences of settling for a D; instead, try to see if there is something you can do to save your grade and pass. Talk to your professor. Good luck!