They can only void the warranty for the part you replaced with an aftermarket part. So like, if you replaced an OEM wheel bearing with a generic one and it fails, don't expect them to pick up the bill.
Otherwise, they can't void your warranty for working on your own car.