Which OS is the most secure when I want to use a crypto-wallet and make transactions? I heard that Ubuntu, is it right?

Ubuntu is just one of many distributions of Linux.
Linux is safe in general but mostly because most hackers write malware for biggest possible audience (windows) and linux attacks are more targeted for individuals.
So yes, in general you will be safer.