That's not ok from my perspective.
I've seen so many aluminium framed bikes broken at the top of the seat tube, often with more insertion than this.
(I've repaired dozens of steel frames, but aluminium ones go in the scrap. )
You'll get away with it if it's a showpiece, but in regular hard...