In recent years, integration of sensing and communication has gained significant attention. In this context, the adoption of the multiple-input multiple-output (MIMO)-orthogonal frequency division multiplexing (OFDM) joint radar and communication (RadCom) system is promising. However, comprehensive exploration of the MIMO-OFDM joint RadCom system remains incomplete, particularly concerning precoding design across various radar transmission and spatial multiplexing modes. To address this gap, this paper investigates the joint design of precoding and subcarrier allocation for MIMO-OFDM joint RadCom systems. We formulate a correlation function-based radar and communication joint design problem and propose a solution approach that solves the problem by iteratively solving the precoder design and subcarrier allocation subproblems. We analyze the convergence behavior and complexity of the proposed approach. In addition, simulations are conducted to assess the effectiveness of the proposed design approach. Results demonstrate that our approach can effectively adapt to different radar and spatial multiplexing modes and outperform reference methods.