2.5gb switch use case

My stupid question of the day.

My entire home is wired for cat 5e by previous owner. However in my office I have 2 computers with 2.5gb capable nics. I have a 1gb switch in the office because I have quite a few machines. My question is if I upgrade that to 2.5 can those two machines communicate to each other at 2.5 through a 2.5gb switch?

yes, of course

Thanks, I wasn’t sure. I read they could but figured y’all would know best.