Surely you can mix conventional or attribute based routing. It's typical to use conventional routes for controllers serving HTML pages for browsers, and attribute routing for controllers serving REST APIs. Having that said, and in my own opinion, Attribute routing is ideal for building REST API's.
Read on:
Routing in ASP.NET Core | Microsoft Docs[
^]