It depends on where you are in the world. In many places, if the yacht is longer than 9 meters, you need some sort of skipper's license or Certificate of Competency. In the US, if it is an inspected vessel or operated for hire, you will need a CG master's license. In most other cases, you will need to have at least passed a state-approved safe boater course.