Yes you can try this.
if the 2 components give the same "hardware" blocs (uart, ...), PSoC Creator can regenerate without issue an HEX file for the new component.
Hopefully Robin's answer helped you. If so, please mark his answer as "correct". This way he can get credit for his contribution.