Yes Convex Lens Can form virtual images which are magnified, provided the object distance, measured from the optical centre must be less than focal length.
For your question,
let focal length, f = + 6 cm
let object distance be 'u'
let image distance be 'v'
magnification required, m = +3, +ve because image will be erect, according to the property of convex lens: