Have not done it with pinhole, but I would guess it is possible; using a pinhole to project the image on a piece of paper is one approach to eclipse viewing. If you're trying to get a round, stationary image of the sun, as opposed to a track of its passing, there could be some mechanical stability problems at high magnification. I shot the total eclipse last August and even a 300mm plus 2x telextender was well short of filling the frame of the 35 mm camera I was using, yet 600mm is essentially a 12x telephoto. In the process of doing that I had to constantly make adjustments as the sun seemed to be really cruising across the sky. There are, of course, clock drive telescope mounts, and these days, all sorts of computer driven technology (but it doesn't come cheap!) My gut sense is with the trade-off between f-stop and diffraction, given an "optimum" pinhole you might need some ND filtration to rein in exposure -- but I could be wrong. My full sun pre-eclipse shots used a special metallized Mylar solar filter through which one can barely see the energized filament of a clear 60 watt bulb. I doubt you will find too little light to be a problem.
If I were trying it, I would likely start with using print paper rather than film for a lower sensitivity, try a shot or two and see how it does. Not sure how big you want to go, or how much money you want to spend, but some of the big box stores carry
round fiber tubes of substantial diameter, used for pouring concrete foundation pads. They are not actually all that pricey.