Yes, it is allowed and, as mentioned, is often good coaching strategy.
Where you must be careful is in who comes back in. Remember - if a player is subbed out during the FT's, he cannot come back after the last free throw is successful - he must wait until the clock is properly started on the inbounds.