Yes, it is possible but can be a risky move. I'd also recommend confirming any other roles or applications will not break because of renaming.
https://woshub.com/rename-active-directory-domain/
--please don't forget to upvote and Accept as answer if the reply is helpful--