Quilt basting spray may or may not wash out, depending on the brand of basting spray you use and how you use it.
But then, in many cases, after washing your quilt a few times, the basting spray will lose its stickiness. However, there may still be some residue on the fabric
Basting is meant to be a temporary hold for your quilt layers, so obviously, you don't want it on your finished quilt.
Washing quilt basting spray off your fabric with warm soapy water is perhaps the easiest way to remove the stain.
If warm soapy water does not get the quilt basting spray out, alcohol will.