One hundred percent yes, especially if you’re diving in the ocean. The ocean is not the place to learn how to swim, and if you can’t swim, wanting to freedive seems like a weird thing. Do not try freediving if you cannot swim. Your chances of dying will skyrocket. Without at least adequate swimming skills, you should focus on improving your swimming. Do that before attempting any kind of diving.