The punishment for a first-time offence under Section 23 of the PC&PNDT Act, 1994, is imprisonment of up to 3 years.