Margin updating

if i trading MIS product and make a profit and close my position. can trade with that profit today itself? or does the margin get updated the next day only? and is it the same for MCX and NSE

Yes, you can but if you take new fno position with that profit and carry forwarded then one will be penalized as profit will be realized on t+1.