Sunscreen will not completely prevent you from getting a tan. It will protect from most sunlight rays, but it's inevitable that some will still reach the skin.