Yes, hairspray makes your shoes grippy temporarily, the grip will not last for a long time. Hairsprays have an adhesive that improves the stickiness of the rubber sole. It is advised not to apply the spray too much. Plus, always make sure to completely dry the hairspray after applying on the sole before stepping into the basketball court – you might slip and get injured if it stays wet.