Yes, but no need to use iptables. NethServer uses shorewall.
Just install the firewall from Software Center and then go to Applications/Firewall settings/Objects and add a time condition.
Firewall settings are explained in the admin manual.
If you like to use the terminal, have a look at the dev manual.