Honesty being in the cabin while flying is probably fairly safe based on what I have seen in various studies due to HEPA filtration and air movement on the plane. Even more so if you wear a good mask and don't partake of meals. But as noted here all the other choke points on departure and arrival is where your real risk (such as it is) likely resides.