You should be able to power it with a phone charger if the Voltage is stable and not over 5 Volts and the phone charger has a very low ripple in the DC output. One other question is do you have any 3.3 Volt devices in your project? These wouldn't be able to stand the 5 Volt power supply. I would use a voltage regulator to protect your board and devices.
Yeah. Ripple could be a problem.See if it works using a good charger. I suggest using 5V, 1A phone charger rather than using a charger which you get now a days for faster charging with 2.1 A current.
A stable supply voltage can help to prevent errors and misbehave of the final product. A phone charger does not need to provide a very stable voltage, it even might exceed the 5V which is a no-go limit for a PSoC . I would suggest you to use one of the Raspberry PI power supplies which have a regulated 5V output available in different current versions.
Thank you so much to all of you for taking the time to respond and the suggestions. I will take them into account.
Everything work with 5 volts on my proyect, I was afraid to plug in directly to the charger but now that i see your responses I'm gonna try it. In the future, I am gonna get one of the raspberry pi power supplies that Bob recommended since i am running out of time and where i live is hard to get one of those.