In a UFC no contest result, fighters typically do get paid for the fight. The specific payment terms may vary based on the fighters' contracts and the policies of the UFC. However, it is common for fighters to receive at least a portion of their contracted purse, regardless of the outcome of the fight.
When a UFC fight is ruled no contest or a technical draw, most bets will be void. The only exceptions are bets that have already been decided, like betting a fighter to win in Round 1 if the fight ends in Round 3.