In essence, yes it can. But, you need to think about the underlying problem of separation anxiety and not just mask the symptoms. This is a really big deal and not just a cry for attention - dogs are pack animals and can become utterly distraught when left home alone. But, don’t worry, with time, patience, and behavior modification training, you can teach your dog to deal with separation anxiety and learn that being alone is only a temporary state and, therefore, not something to treat as though it were the end of the world.