Yes, you can! Don't worry if there are weeds lurking between your flowerbeds, you can use a spray drift guard and take extra caution. You could also use a flat spray nozzle, which is helpful for killing weeds is awkward to reach places, such as by the fence.