Yes — installing an official firmware update over custom firmware can overwrite your modifications, and on some later PSP models a failed or mismatched update can "brick" the device, leaving it unusable. That's why people who mod their handhelds are generally careful about accepting official updates.