Is flirting at an office party same as flirting at work?

I met a girl at an office party in a pub and we had a completely consensual romantic conversation (no kissing or anything beyond just holding hands). Most people were busy dancing or minding their own business. Some people saw while others were lost in their own world. She’s already serving notice period though. We don’t work together in any capacity.

Is this normal or am I in trouble? I have no intention of getting involved with someone at work.