Something like that yes. Mind you some jurisdictions have laws around “reasonable salary” so always important to check these things with a professional first.
For a more fun take: Watch WeCrash and notice how the protagonist magics 100mil for personal use after raising the huge Softbank round … and what happens to that liquidity when an IPO doesn’t materialize.