Yes, the fonts can be used in any project, commercial or not, as long as they're not being directly resold or distributed by themselves. A book (or games, prints and anything alike) would be completely fine