If they are trained to be left;
yes
Cockapoos can be very needy so It can depend on different factors such as, how old they are, whether they are used to being left.

Cockapoos can be very needy so It can depend on different factors such as, how old they are, whether they are used to being left.

Puppies no longer than 2 hours a day. They need to pee more and they can develop separation anxiety. They are not used designed to be alone, in the wild they would be with their siblings and mother.
Adult dogs can be left alone four to six hours a day if they are used to being left that long. They will have learned to sleep when you are not home.
Elderly dogs are a bit different as it really depends on their elderly needs. They can be left alone two to six hours. It really does depends. Does your elderly dog experience health issues? They may need to pee more etc.
If your cockapoo is left too long they can develop some bad habits. This can manifest in all kinds of behaviour such as biting, chewing, scratching themselves and anxiety issues such as howling, and separation anxiety.
Some tips for getting your pooch used to being left alone.
Start slowly as always. Put your shoes and coat on, take note of how anxious he is getting but try and ignore it, he will get used to it. Leave for 5 minutes. On return when your pup is really happy to see you ignore him, (very difficult but worth it) this is not a special event, you are just coming home and it should be a normal event in his life. Repeat this at least 3 times a day, Make the time you are away from him a bit longer each time. Remember on your return do not say hello to him until he is calm. I usually find a command to their bed settles them down really quickly. When settled, calmly say hello and give him some time and affection.
This should be enough to train your pup to be on his own for a few hours. I would never leave mine for longer than 4 hours personally. If I was away for the whole day I would arrange for someone to come to the house to see him. Even if its just to say hello and play for 30 minutes, a walk is not necessarily needed.