You cannot play a card if it has no valid target. The effect of that card may be blocked by another effect, in which case the played card effect fizzles and the card is discarded. Costs to play the card must still be paid even if its effect is blocked.
Source: PUI Rules Team (2008-01-31), PUI Rules Team (2009-03-12), TPCi Rules Team (2025-06-26)