Lets you have $20,000 in your account and you buy $20,000 of a stock with 50% margin requirement. Now you have put up 100 % margin and have zero loan.
Then you sell options in some other stock for a credit of $600 and a margin requirement of $8000. Now does your margin in the stock position...