Can a Private Limited Company take loan from HUF in which karta is the Director of the same Private Limited Company?

Can a Private Limited Company take loan from HUF in which karta is the Director of the same Private Limited Company?

Does your answer change if the Company is Public limited company?

Question by Ms Amita Desai for the benefit of Students and CS community. https://twitter.com/Amitasdesai/status/1470358004004392960