Yes, having an Aadhaar card is mandatory for applying for an E-PAN card online.