First you need to test the dog for heartworm. If the dog is clear, you can start heartworm prevention.
Unless you live in an area with NO mosquitos and NO dogs traveling from other parts of the country, your dogs should probably be on heartworm prevention.