You may rename POUs and the user-defined libraries at any time unless you are working with a version-controlled project. In version-controlled projects only POUs can be renamed, but not user-defined libraries.
The Rename command is only available if all subordinated windows have been closed.
Pools cannot be renamed.