There are guides for AI as well:
Work better than what? Than the dGPU inside your PC? If it’s the same model of GPU and if it’s not overheating then no.