Nearly missed flight, do I have to pay?

One time I ran late to the airport, I had checked in the night before and my luggage was checked in however we were racing against time including security and finding the gate.

We literally made it about 2 minute to the gate before closing, so it was a narrow escape?

With BA, if I missed that flight, would they have charged me for it?