If the head of my penis is discolored, could this be an sti?

Possibly. If discoloration has been present for a long time, with no change, then not likely a concern. If newly discolored and associated with pain or discharge, can be an std.