Most plans (and experts) won't have you running up to the full distance. For example, the furthest I ran for my half marathon was 11 miles. But with such a short distance I don't think you'd harm yourself or anything... though you may be better served doing speed workouts than run longer than 4 km.