This can lead to many health problems. Many dog owners think they can solve their pet's boredom and loneliness by getting another dog. Usually this doesn't solve any of the problem behaviors. In fact, they can worsen. The result is two dogs with bad behavior, two dogs who establish their own pack and lose much of their previous interest in people.
Dogs are social, pack-oriented animals and the owners are the members of the dog's pack.
Don't isolate the dog endlessly. That doesn't mean that the dog should never be apart from you. It means that when you are home the dog is with you in the house. It means the dog sleeps in the house. It means that the dog is part of family activities.