Basically it depends upon the lotion. Some tanning lotions have SPF and Sunscreen both. While buying tanning lotion dedicated to indoor tanning, you should look for SPF mentioned in it. Similarly, while buying an outdoor tanning lotion, it should have sunscreen. If the tanning lotion contains both it means you can use it indoor and outdoor both.