Speaking from experience, rooted phones will still receive and be able to download the OTA update, but, beginning with lollipop, the installation will fail if you are rooted.
You would have to unroot or flash the update manually in order to install it.