Dear rapc80,
1- Yes, you need to pay the required margin to write the Nifty call. Once call is written the call premium gets credited to your a/c.
2- Yes, if the strike price remains OTM by expiry then, you collect all (approx.) the premium. As the OTM strike price premium is almost zero...