I think the vast majority of people already have an understanding of their own sexuality before having any kind of sexual experience with another person. For example, I knew I was gay/homosexual long before I ever had sex with another man based on my intense sexual attraction to other males. However, for a smaller set of people, experimentation is the means through which they determine the full spectrum of their sexuality.