Is it normal for smartphones and tablets’ batteries to get heated?

Can I say it is okay for my Tablet or smartphone’s battery to exhibit or get a bit heated or hot? A friend of mine is at present using HtC Sense with Android as the mother programming software. She was complaining of the fact that her phone gets heated any time she plugs this particular smartphone to charge. Thank you.
