Well there is an element of truth to it, but the first part is an exaggeration, plants can take up some P through the leaves although maybe not as well as some of the other nutrients. Another common statement is that you need to foliar feed when the stomata are open. In fact studies have shown that nutrients are taken in from foliar application better at night when the stomata are closed. There's also less risk of damaging the leaves then.