Can an application send a user file to the internet?

Do I understand it right that any app that connects to DNS can upload any my file to some servers without me even knowing it? I mean, if the app is allowed to access DNS, by default COMODO users don’t know what it actually does there?