It depends. You must figure out how to have enough income to meet your basic needs and childcare. You might replace what you lose from your TANF with school financial aid. Talk to a financial aid officer at your school.
You could also try to get work-study. Work-Study earnings do not count as income or affect your TANF amount. And 16 or more hours of work-study will meet the Work First participation requirement. Your IRP should also include community college or other technical or vocational training.
If you can't get work-study, you could work enough hours to make up for the TANF you lose from the sanction. DSHS only "counts" half of your gross take-home pay. It lowers your TANF by the other half. Starting August 1, 2024, DSHS will let you keep the first $500 of your earnings, and half of what is left after that.
If you are sanctioned, you may get your sanction lifted temporarily if you work during the summer.