I would never interview for a job I knew I did not want. However, if I do not have enough information to know if I am interested? Very different situation.
It really is not professional to deliberately interview knowing 100% you will not accept the job (excepting when the other party knows this, ie practice interviews). Because you are intentionally wasting time, money, and effort.
An interview is for both the company and the interviewee to learn more about each other. It helps both decide "yes" vs "no." If one party has already decided it seems a waste of time to interview.
So, if you are potentially interested? Sure, go for it. If it doesn't work out then just say "thanks for the opportunity, but I unfortunately have to decline at this time" and leave it at that.