Apply for your visa first and wait for it to be approved/denied. Then think about making a visit to look for housing/employment. Make sure to register with the government's employment site and check often for updates. This can speed things along, but ensure entrance first instead of assuming.