Is entirely fine.
When using traps in combat, you don't "take 20" and have to make a set trap roll, and expend a round entirely flat footed and open to sneak attacks, also gives people a round to move away from you, etc.
This is built into the game.
Using traps in combat is fine.