P0171 = System Too Lean (Bank 1)
P0174 = System Too Lean (Bank 2)
As Msupertek said, there are many more things than just bad O2 sensors that can cause a lean condition. My experience is that if an O2 sensor is at fault, I have gotten other codes than the P0171 and P0174. There are codes for the sensors not switching quickly enough or for them being out of range (open or short). If you are getting a lean condition code then all that means is that your O2 sensors are detecting that you have more air in your exhaust than you are supposed to have. It doesn't mean that the O2 sensors aren't reading it properly. Look at the areas that Msupertek suggested. The two most common causes are an intake leak after the MAF (allowing unmeasured air to get into the cylinder) or a dirty MAF which causes it to not read as much air going through it that is actually going through it.
In addition, OBD-II codes are 4 digits, not 3. Since you didn't include the first digit, everyone is assuming that you are referring to codes P0171 & P0174. If by chance you are referring to a P1171 or P1174 then they stand for:
P1171 = Rotor Sensor
P1174 = Cam Sensor