Yes, but avoid burning the creamer. Scorched creamer has a foul flavour and must be discarded. To heat creamer, use a microwave or a stovetop.
Some frothers cannot heat the creamer during frothing. Therefore, you must heat it after foaming.