Avni_M
Yes it is very much possible to transition into a new subject for your masters degree and universities do accept applications for the same, however, some universities expect applicants to demonstrate a strong foundation in their chosen field.
If your undergraduate degree is not directly related, you’ll need to bridge the gap through relevant coursework, certifications, or other means.