You can run Minimal APIs and Azure Functions in the same .NET solution. But, not in a same project it is not even recommended. Because, Minimal API's rely on asp.net core's webApplication and Kestrel .
But Azure Functions runtime uses its own host (func.exe) and startup pipeline.
Because both have different environments/runtimes that's why it is not recommended to use them in same project.