Yes, it is possible to prevent the creation of an account with the same name after deleting an Active Directory account. One way to achieve this is by using the Active Directory Recycle Bin feature. When an account is deleted and the Recycle Bin feature is enabled, the deleted account is moved to the Recycle Bin instead of being permanently deleted. The Recycle Bin keeps track of the deleted object's unique identifier (GUID), which prevents the creation of a new object with the same name and GUID. Therefore, if you try to create a new account with the same name as the deleted account, you will receive an error message stating that the name already exists.
References: