Yes, hair setting sprays are safe to use on hair. The only thing to be cautious about is not over-using it, and keeping the quantity in moderation. Plus, make sure to avoid its build-up.
Also, hair sprays can cause irritation if it enters your mouth or eyes, hence be very careful while using them.