Yes, you can. You don't need to be a good swimmer for getting an introductory diving experience, but it is always an added advantage to have some degree of comfort in the water. Some diving centers on local beaches offer recreational scuba diving for tourists, accompanied by trained divers to get an all-out first-hand experience in diving.