You can withdraw money from your IRA or 401k before retirement, but you may be subject to taxes and penalties. Roth IRAs allow for tax-free withdrawals of contributions at any time, but earnings may be subject to taxes and penalties.