No. UPSC exam is the competitive examination for recruitment to Administrative, Police and various other services across India. Various services include Indian Police Service, Indian Foreign Services, Indian Railway Services, etc.
NDA is conducted by UPSC for recruitment to various divisions of Indian Defense like Army, Navy and Airforce wings of the NDA. So NDA is for Candidates who want to make a career in the Defense Forces of India.