asexual?

do you have to have had sex before to know that you’re asexual? i’m confused tbh.