I have a firewall and i am able to chose what ports are closed and which are open.

I would like to be able to open up 4 or 5 ports but i am afraid that a hacker will to use this as a way into my computer.

Is it possible for a hacker to be able to send files through 4 or 5 ports or am i safe.