That's a good trick for older phones maybe 2018 or before, if we take current models eg: iPhone 11 pro it has AI learning about your charging behavior so you, whenever you put that into airplane mode and do charge it learns the same, so choose this option wisely for newer models.
You might as well just turn the phone off if you will do that and charge it even faster.
The trade off there is that you'd have to wait for your phone to boot up afterwards. Toggling airplane mode is much faster than that. Plus, if you still need some connectivity, you can enable airport mode and then toggle on wifi. Still faster charging than with all radios turned on and listening and you are still connected (except for calls/texts)