We all have this experience: after a period of exercise, the body will feel very tired. When we are in this state, we are actually very eager to have a rest. In this case, our sleep quality will be higher.
Therefore, fun running will actually improve your sleep quality. From this point of view, you don't have to worry.
If you are still worried that fun running will affect your working condition the next day, you can go running as soon as possible. For example, when eating for half an hour, or before taking a shower, etc. By the time you finish running before doing anything else, the cells in your body have returned from the excited state to the normal state.
When you are ready to rest, your body is no different from your normal state, so you can sleep in peace.
So, if you want to run, you can start exercising earlier. And you can try to exercise for a few days to see if it will affect your sleep. If you can, you can also change the fun run to morning run.