Two entries same category
Yes. It is possible, you need to specify the craft category and set the group parameter on it and fetch the categories with .all().

{% set categories = myCategoryQuery.all() %}