Answer
The answer is no, Nejc Pečnik did not represent Slovenia in the 2018 FIFA World Cup. Slovenia did not qualify for the tournament, finishing third in their qualifying group behind England and Slovakia. Pečnik, who plays as a midfielder for Olimpija Ljubljana, was part of the Slovenia squad but did not make any appearances during the qualifying campaign.