I was under the impression from interviews that it takes place before infinity wars but ends up coinciding with infinity wars events. So there is always the possibility that the end credit scene will tie into the ending of infinity wars if not set up avengers 4
XI Wiki



