At least under Unix world - no. You'd have to gain the rights before starting the app (meaning you can get root priviledges for a subprocess, but not for the base process).