Need advice budget PC build optiplex 7050 sff

Hello, I am currently looking for a budget build I have found a optiplex 7050 i7-6700, 8 gb ram 500gb hdd. I’m thinking of just slapping a rx 550 4gb gddr5 into it. Can I just put the GPU into the PC and be good to go? I’m a newb and need guidance if there’s anything else I should do or if I’m all set.

I’m only going to be gaming somewhat lightly, rainbow six siege is the only game I will download with fl studio for light music production also. Is this a good idea?