NSAIDs can be used in children and the elderly, but always with medical guidance. It is important to note that the bodies of these age groups react differently to medications, with a higher chance of adverse effects, especially with prolonged use.