...as long as you are paying yourself a hefty salary. Your equity dilutes quickly when you raise a lot of money, and liquidation preferences can leave you with nothing unless you actually make a wildly profitable company.
Companies need to be huge before this before founders get's into the 10+ million dollar range, but even VC do this: http://avc.com/2018/01/taking-money-off-the-table/
Further, it's often encouraged as founders that take out enough money not to have significant financial concerns are more willing to aim for the fences.