That board has a PCIE 2 X16 and it should work. But new generation Nvidia cards require UEFI BIOSes and I'm not sure GTX 1050 would work on this board.
Some boards have better compatibility due to BIOS update but according to Intel website latest BIOS update for this motherboard dates
back to 2010. There was no Nvidia series 10 back then and it's probably not going to support these cards.