Yes, Pirates used to be very much real. Throughout history, pirates used to roam around he sees with their ships looting and plundering whatever comes in their way. They were more like robbers and goons operate off the shore, and less like the ones that we see in movies such as Pirates of Caribbean.
Even today, pirates do roam around the seas however they are limited to certain regions in the world that include Malaysia, Somalia, Brazil, Caribbean, South China sea, Venezuela, Argentina, and a couple of other areas. However, these pirates operate on a smaller level and won’t mess with larger ships.