Being upfront about your goals can demonstrate integrity and a willingness to be open, which many employers value.
Cons
Employers may worry that you won't be fully invested in the role if they know you plan to leave for self-employment, which could affect their hiring decision.