CPap machine and heart failure?

If you already have heart failure from not breathing well at night, does a cpap machine help you?

In other words, is better late than never?