Probably, if the SSD used is a single chip. Some are multiple chip, but would be located together.
Some of the teardowns on the internet will identify the major parts of the logic board, including the location for the flash storage. I couldn't find a picture of your 2017 15-inch logic board with those chips identified --- but that doesn't mean there are none.
Without that, you would need to find out how to identify which chips are those for storage. That would be the identifying code on the chips. (Sorry, I don't know where to find THAT information)
Maybe someone with other knowledge will be able to help you with that.
Question for YOU: (I'm curious!)
How is it that you have a logic board, but no way to identify which MBPro it was removed from?