No. The PlayStation 3 firmware does not support PSN Online ID changes. This feature was introduced system‑wide in April 2019 (PS4 Firmware 6.50) and is managed via the Account Management website/console on PS4/PS5.
Do NOT delete your PS3 User Account thinking it frees the Online ID. It does not. The Online ID remains locked to the deleted account’s history for a period (or permanently) to prevent impersonation. You lose saves/trophies/digital licenses forever.
Bottom Line: If you must keep PS3 functionality intact, do not change the ID. If you have a PS4/PS5, change it there and accept the small risk of PS3 game issues.