Yes, I've done it that way many times. Opening up a capsule of a probiotic product and dumping the contents into pre-sterilized milk, then plugging in my yogurt maker with that in it.
Pre-sterilized milk means bring milk to a boil to kill any rogue bug living in it, then let cool to room temp before putting your starter (the contents of the probiotic capsule) into the milk.