During a recent hospital stay I was given a shot in the thigh. Is it normal to develop a hard spot under the skin there?

Yes. it is not uncommon to get a small hard knot under the skin from an injection. This is usually a small amount or scar tissue from the injection and may or may not resolve.