Yes, airplanes can fly in thunderstorms. Pilots will always try to avoid the storm by hovering above or around it, but if they do encounter a thunderstorm, aircraft can still withstand a lightning strike.