Sure. In calculating how much is needed:
KH2PO4:
K - 22.73% by mass
PO4 - 69.79% by mass
K2HPO4:
K - 44.89% by mass
PO4 - 54.52% by mass
So for every gram of KH2PO4 you added to meet your PO4 requirement, you'd need to add 1.3g of K2HPO4.
Since it contains both more K by mass and you'd be adding more of it to start with, K2HPO4 would make a better incidental source of K than KH2PO4.