Can you play legally the Wild Draw 4 card, if you have no matching color or number and have a wild card?

I am new to the game but from my understanding, you can play the Wild Draw 4 legally whenever you do not have the color (Numbers and Action Cards are fine).

Thanks for any answer!