Yes, you can appear for UPSC Exam after completeing of your D Pharmacy. The minimum qualifications is a graduate. To know about this UPSC exam pattern, syllabus etc., visit the below link.
https://competition.careers360.com/articles/upsc-civil-services-exam-pattern-syllabus
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile