Make sure you get the right length.
Can I ask what you intend to do with the PC as it seems quite expensive at nearly $1200 and I'm sure I could find a better deal.
if you have a DVI port - you can use this adapter cable to connect your pc to your monitor. -> https://www.amazon.com/Amazon-Basics-Adapter-Cable-1-Pack/dp/B014I8UQJY/
Cable: https://www.amazon.com/AmazonBasics-DVI-to-HDMI-Cable/dp/B014I8UQJY/
Or use your own HDMI cable with a adapter: https://www.amazon.com/DTECH-Female-Adapter-Bi-Directional-Converter/dp/B07MJDYH21