Yes, many larger motor yachts carry diving gear and as long as you have the right PADI qualifications you are more than welcome to use the onboard equipment. Some yachts even come with qualified instructors on board.