can you top these trees from getting to tall my tree is in a container due to my cold winters
Sure you can! Just keep in mind that this will completely change the shape of the tree, overall. If you do not mind this, then this is ,certainly, a viable option.
This article will give you more information: https://www.gardeningknowhow.com/ornamental/trees/pine/pine-tree-pruning.htm