Yep that's fine.
Just don't get incapacitated in flight because you know who they will blame!!!
Doesn't work for me though on 5 day patterns around Asia. Also my caring company have said we are not allowed to heat personal food in the Ovens, something about contaminating the Ovens ...........