Chances are, yes, it'll be ok.
They're pretty resilient plants and can put up with a lot.
You'll know pretty soon if that top will survive. If it doesn't wilt and stays healthy, keeps growing, then it's all good.
If it wilts, I'd just prune it off.
Everything will be fine, I think.