You can’t take the interest tax free unless you’re age 59.5. You can take the principal. If you take interest/earnings, you have to pay a penalty. And as velociraptor explained, no, it doesn’t matter which account you’re pulling from.
It’s still inadvisable to do this unless absolutely necessary, since you can’t go and put it back in. It’s not a loan to yourself. It’s just lost tax-free growth opportunity.