It depends on your airline and local regulations, but using a laptop is permitted on most planes during flight as long as the PC is in Airplane Mode.