@RajeshLawrencePatrao-2057 Welcome to Microsoft Q&A forums.
Yes, you can use 2 separate AD groups on 2 different databases for access control on a single server.
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.