First think about your relationship with that person. Are you guys friends, classmates, acquaintances? How does that person treat you? What are you to that person? Does that person treat you differently from other people? You can’t really be 100% sure unless you ask but if you’re scared of rejection, sound them out first and then ask if suitable