If this was something unrelated (you took a course out of interest in the subject be it Swahili or folk dance or costume design) and did not pass, but still met the requirements for graduation and still have a decent GPA (which failing a pass/fail course does not affect, then you should be fine.