Yes you can, since wine-making also produces cultures of yeast and other bacteria as a by-product. However it’s pretty musty, strong-tasting stuff and makes fairly foul bread. Beer barms can be pretty rank too, especially if they have a strong hop flavor, hence the reason why the invention of compressed yeast was greeted with such enthusiasm in the industrial age. Beer barms, being highly variable in their quality and leavening abilities, frequently produced lousy bread. Cake yeast always worked, gave a great rise, and was very predictable.