It's possible for people other than pros to play by the official rules. I think it would help the game if more amateur players bothered to read the rules. But to answer your question, here is the rule from the WSR:
6.12 Cue Stick on the Table
If the shooter uses his cue stick in order to align a shot by placing it on the table without
having a hand on the stick, it is a foul.
The CSI/BCAPL used to have a similar rule but that's been changed to allow the stick to be unattended:
1-3 (1) f. You may use your cue, held in your hand or not, to help align a shot. You may use your cue and hands to measure angles and distances for bank shots and kick shots. No other cues, bridges or equipment may be used. (AR p. 79).