Overleaf template for IEEE journals
According to Overleaf, yes. The top of their gallery page states:


  Here we provide a selection of academic journal templates for articles and papers which automatically format your manuscripts in the style required for submission to that journal. 


For what it is worth, the IEEEtran template looks identical to the one that one would download from the IEEE for the Computer Society. Given how easy it is for Overleaf to keep the template file up to date and the loss of users they may suffer from providing invalid templates, there isn't really a strong reason to suspect that they do not have the correct version for use there.