Are regular and context free languages closed against making them prefix-free?
Can't we make the same thing with a pushdown automata for context free languages ?


No. Your construction needs to start with a deterministic automaton, and PDAs cannot be determinized.