Calculate outside unity

Generally no.
Some people have had some success at making it work outside of Unity, but it requires some work.

See Using pathfinding outside of Unity