You can indeed, but be aware what this means. You'll be in a relationship that may well feel one-way. Autistic people lack empathy, so you will not find s/he has any interest in your pursuits, skills, family or anything else. If you're ill or upset, they are not people to turn to.
Your conversation and lifestyle will revolve around his/her special interests, which may be obsessive. It isn't impossible to have a friendship or even relationship with an autistic person, but you will need to be very devoted and have little need for anything reciprocal.