Hello New2, Yes, it can do. Or it can suggest the way a cat plays with a mouse. Generally, "to toy with something" means "to treat something as a toy or a plaything".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.