Yes, UDP can be used for file transfers, but it’s not typically the best choice for this purpose. Because UDP doesn’t guarantee data delivery or order, files transferred using UDP could arrive incomplete or out of order. For reliable file transfers, TCP is usually a better choice.