Can I Get Malware On My Ipad, And Can It Get Transferred To Computer?

I suspect that my ipad has a virus. But I ignored it initially since it’s very uncommon for an ipad to have a virus. But I am scared of connecting it to my computer. Can i get malware on my ipad, and can it get transferred to computer?
