Is it true that if a hard pill does not dissolve in a glass of water within 30 minutes that most likely the body will not absorb it?

Not at all. Pills are meant to be dissolved in the stomach which contains hydrochloric acid, one of the strongest acids that exists. Although some pills have a sugar coating which dissolves easily in water, other coatings may not dissolve as easily.