More holes for attacker means that your system will not be attacked?

It is best practice that before you switch on to any network, the services which are not required should be disabled. It provides the more hole creation. If more holes are created, will the system be more secure? How can we disable service for Linux?
