Can I lend money to my company and charge interest? Does the company have to deduct tax and pay interest net?

Can the company pay me interest gross? What if I have borrowed the money to lend to my company?

See Interest: paid to directors and individuals  and Interest relief: making a loan to a close company