Can microsoft .net core 2.2 sdk docker container be used for building 2.1 and 2.2 targeted projects

I have several .net core 2.1 and 2.2 projects that will be built using on-premises servers that run Docker containers for the build workspaces. I am planning to use the mcr.microsoft.com/dotnet/core/sdk:2.1 image to build the 2.1 projects, and the mcr.microsoft.com/dotnet/core/sdk:2.2 image to build the 2.2 projects, but I’d like to simplify things if I can. Is it advisable to use just the mcr.microsoft.com/dotnet/core/sdk:2.2 image to build both 2.1 and 2.2 projects, and get rid of the 2.1 sdk image?

Source: StackOverflow