Yes. It can easily be done by adding SRCNAT rules. Use the src-address condition to selectively apply different to-addresses based on the source address. Please note that the order of the rules is important. So place the special rules for sources 10.0.0.101/32 and 10.0.0.102/32 above a catch all rule for source 10.0.0.0/24.
Also, this flowchart will come handy. The relevant SRCNAT rules would be the box #25 in the chart:
For incoming connections, apply DSTNAT rules if you want to map 172.x.x.3 to 10.0.0.101 and 172.x.x.4 to 10.0.0.102 (in that direction).
