It depends on what their goal is.
There are two commonly understood goals for running for President.
The first is obvious. TO be elected President.
But some candidates run as a stalking horse candidate, trying to force the mainstream candidates to take positions on issues that they will have to live up to.