If it has a PCIe x16 slot then it should fit. The Zotac GTX 1050, all variants, are pretty short and frankly I doubt that it would even extend past the width of the MB.
However there are some reports in the wild that the latest gen cards from both the red and green team are incompatible with older motherboards, so remember to check the returning policies of the store you are going to buy the card from before commit to it.