There is a big percentage of the factor of luck in poker. It is not the most impotant. You cannot play only with luck. You need judgement, experience, study, maths and luck.
There is certainly a degree of luck in each hand or session. However poker is a game of making decisions with incomplete information on the most likely outcome. Those who do the best at putting themselves in the best situations most often will come out on top.