Yes  it can generate codes even if in airplane mode  but in my case  I actually have to be connected to sync my device timer with the code. Anyway  seems like Google Setting gives security codes too. Yet  I ask have ways to go to explore this app's full use.
February 19 2016