Yes those will totally work, as long as there’s enough volume of rosin…. Probably on the large side though.
But also, search online for dab/rosin containers. They’re what commercial places use. I found 15ml to be a decent size without being too big or small.
You don’t want silicone containers for anything other than short term use…