Withdrawal bleeding

Does the bleeding experienced on your week off of taking the pill show you're not pregnant? Because I know it is not a natural period but does it still work the same way?