According to the current regulations, only people with science and engineering qualifications can apply for the patent agent qualification examination.
Of course, it would be great if you can enter the intellectual property major as an undergraduate, but you need to consult whether you need special requirements to apply for this major.
I hope it helps you.