That’s correct, Residence permit is issued based on your work permit, i.e. Work visa. As for the job contract, don’t worry, you will get the duly signed copy once you are here. But anyway, try to discuss every single detail and get it written prior to accepting anything.. I am not sure what company you are joining, but most of the companies here promises a lot, and then sometimes it’s hard to make them following their promises...