You should ask, or, if you feel comfortable doing so, feel it out organically. Try doing something similar gently during foreplay and see if they go along with it. See how they respond to it, and behave accordingly. Immediately assume they don’t like it if they pull their hand away, try to pull their hand away, or ask you to let them go