I don't recommend it as most icings (including store-bought icing) won't properly "harden" or dry out enough to be a stable "glue" to hold a gingerbread house together.