I'd say yes you may take up government post if you defeat Anwar Ibrahim in Kajang by-election this time. But that is just me.
If the Government allows this and they probably will, is just because Liow Tiong Lai has been a good minister previously. This is what we call "giving face" to the leader.