Contribute most of earnings to Traditional 401k AND still contribute to a Roth IRA?

Hello community!  

If I made roughly $35,700 in W-2 income last year and contributed roughly $28,000 of that into my company's Traditional 401k, can I still make max Roth IRA contributions for both my husband and me?  Husband did not earn any income in 2025.  ChatGPT makes it sound like I can still do this, but i'm trying to confirm.  Thank you!