You can use it for any program (or any mongodb version) that needs openssl-1.1 for new Ubuntu versions (as long as they keep compatibility). You execute this command and then follow the instructions to install with sudo apt-get install .... It will know where to look for the libssl1.1
By the way, did you notice what happened to the actual command in your reply? when you add code blocks or commands, add them in backticks, just like you quote “important” things. single ` (or double``) backticks for inline, and triple ```(or quad ````) backticks for blocks.