Generally, white background photos are not used. If you must use it, nothing is absolutely impossible, because without the contrast of background colors, photos with white backgrounds look bad visually.
Moreover, in most cases, the requirement for official document photos is red or blue, which meets the conventional photo requirements.