WarCards-Game on GitHub with Screenshots: Allowed?

I would like to keep the WarCard-Game and the other apps from the beginner-course on my GitHub-account. Using screenshots to show how the app looks.

Is it allowed?

Because it would include images, which aren’t owned by me and for which I’ve got license?