5.2.x theme in 5.4.2 Wordpress.

can I install a 5.2.x theme in 5.4.2 wordpress without getting any problem?

99.9% chance it will work without any problem.

I believe it will work fine but better You ask this query directly to the theme author by posting comments going through theme Comments page. theme author will answer your query.