Do we still have to do ghusl even if we dont ejaculate inside while having sexual intercourse

yes you have to