If your OBD2 scanner is compatible with your vehicle year, make, and model, it should be able to read all of the engine codes. Some OBD2 codes are universal, while others are manufacturer specific. For the most part, any OBD2 scanner you buy should be able to read all universal codes as well as the manufacturer codes for most cars.
If you have a vintage or luxury vehicle, check that the OBD2 scanner you want is able to read codes for your particular vehicle.