I've certainly used this with a Firebolt yesterday, not sure if it functions for spells that don't have an attack roll, as I haven't used one in that way. Note that you aren't given proper feedback, such as a targeting reticle, when doing it this way in my experience, so the ability to do so my be unapparent.