Yes, a bad thermocouple can cause your pilot light to go out. The thermocouple's job is to detect the pilot flame. If it fails or malfunctions, it may incorrectly signal that the flame is out, causing the gas supply to shut off.