Yes, and your examples are fine. Here is another version that seems a little more conversational: You must be rich; if you weren't, you wouldn't be able to afford this. Let's hope it works; if it doesn't, we won't survive much longer.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.