Yeah you can you would just have to switch it around each time you want to use it. I reccomend you just buy another cable considering they are so cheap to come by.
Here are two examples, a cheaper one and a slightly more expensive one... I guarantee you that the picture quality from both will be comparable.
EDIT: eugh it seems I cant post links to external websites. Just go on amazon and search for HDMI cable...