Generally a safety gate provides some safety for babies and toddlers by making it harder for them to fall down stairs or go into other potentially dangerous areas. Safety gates are also used to keep pets from getting into trouble.
Make sure your gate does not provide additional dangers with sharp pieces, parts that can collapse on little fingers or big enough spaces in the grid where little heads can get stuck.