Yes, but you have to look at your individual carbon footprint, not just the industry's footprint or your percentage contribution to the industry's footprint.

Your individual contribution to carbon emissions on that single flight is far greater than the carbon emissions you will save by using an electric car and using solar for an entire year.

You could make the case that the flight would have flown regardless, with or without you, but by buying a ticket you increased demand, which has an impact on the airline offering more flights.