If it fits , why not but…. if its too long, you will bent it eventually , also the swingarm has a very narrow space to work with , so if the springs are fat, it will hit the swingarm 100%
As found out by another member on a GT650R , was having suspension issues because someone else fitted a 250R shock! – So he got a 650R shock for his 650 and all was better and solved
Also you may run in to the issue that the “Y” bone under the swingarm will 100% hit the frame if the shock is too long and it may not slot the bolt (too long/too far out)
You will be wise to measure your old shock first  (bolt hole to bolt hole)  and dimensions of the fittings etc to try make sure you get another 1-to-1 copy (or close to it) , also hyosung is a nearly 200 wet kg bike (especially the GTR) , you want the shock to handle it.