Can i do plumbing without a license?

Can I do plumbing without a license, or do I need to hire a professional for certain tasks to avoid legal issues and potential fines? What are the risks involved?