Honestly, it's too general a question to answer. Sometimes, if a crack is in just the right place and easy to access, it can be welded, at least temporarily. But more often than not, a cracked engine block, especially if coolant and oil are mixing, means a new engine.