To answer your question yes, sure can, you just need a code reader.
Some folks on here will tell you, you can only get the codes when the light is flashing, they are incorrect.