Exactly. Cheap to do, easy to do and very secure.
Just remember if there not very heavy they could possibly be pulled over by holding onto the bar when she gets older so maybe a wall anchor just incase. Probably not necessary but thought I'd mention it just incase
Good Luck.