If $a \equiv b \mod (nm)$, then is it always true that $$a \equiv b \mod n$$ $$a \equiv b \mod m$$
I feel like it's kind of obvious because if $a-b = k_1nm$, then $a-b = k_2n$, ($k_2 = k_1n$) but I can't find any resources on the topic, so maybe I'm wrong