sex and condoms

When my boyfriend and I started to use a condom, it hurt at the beginning and I'm not sure why... just wondering if anyone else has experienced this or am I allergic to the condom??