You certainly can. While different in a few key ways, Beagles and Dachshunds are very similar in others. Small, friendly, playful, and temperamental, both of these breeds make for great family apartment dogs and so does their mix.
The personality of the resulting cross will be fairly consistent but the looks can obviously vary. The legs can be a bit longer or shorter, as can the muzzle. The colors can vary too but the ears will always be long and droopy. The pup will either have a digging or a howling instinct, or both, or neither. All in all, as long as the two parents are healthy, there’s no real drawback to this cross.