Avengers: Endgame marked the end for a lot of our favorite heroes, but it seems that Thor will still be a part of the MCU. There are a lot of places Marvel can go with this character, and it seems like they have chosen to place him with the Guardians for the time being.
The ending of endgame suggests that Thor will most likely be present in the third Guardians movie and may get his own fourth movie too. That also means that there is a good chance Loki will make another appearance in the MCU, and that could help Thor wrap up his story arc.
Source: 1