Options trading in Nifty.?

I need a clarification to my doubt.
Suppose, I buy a 4400 Nifty PUT ( exp date Feb 25 ) today for Rs.18 , ( Say, tomorrow Nifty is at 4750 ). If I close the option open poistion for suppose Rs. 30 ( well before the expiry ) , Will I get the profit of
Rs(30 – 18 ) ? Or will I be at loss Since Nifty is not below 4400 when I close the contract.