I've seen penalties given where the ref wasn't even looking.You are right.
"You are not required to wait for the whistle before taking a corner kick or free kick. However, you will need to receive the referee’s permission before you can take a quick free kick."
Except I have seen loads taken and the ref is not even looking.