Generally you are told the gender at the 19/20 week morphology scan, which is a medical scan. So unless you want one, there is no need to have a 3/4D scan for gender purposes.