Pregnancy tests might be a dumb question

Is peeing in a cup and then dipping the test in there taking it out then waiting really accurate ? Like it’s perfectly fine as you just peeing on it?