Probably not. A better solution may be to limit the computer join permissions.
https://www.rebeladmin.com/2015/05/how-to-allowprevent-domain-users-from-join-workstations-to-domain/
--please don't forget to upvote
and Accept as answer
if the reply is helpful--