Yes, there are laws and regulations about owning any type of poultry just about everywhere. But, it varies from city to city, county to county. Some places are very lenient and some totally ban all poultry. Check with your city or county about your area.
Generally, ducks are banned from apartments just about everywhere unless they have a special place on the property for them. Homeowners associations also tend to restrict poultry more than what the town or county does.