Does putting queries within loops cause an issue on WordPress?

No there is no issue you can use query inside a loop with the help of reset post data and query

  • wp_reset_query() – ensure that the main query has been reset to the original main query

  • wp_reset_postdata() – ensures that the global $post has been restored to the current post in the main query.